package com.laysonx.demo.handler;

import com.laysonx.data.police.handler.AbstractVerifyHandler;
import com.laysonx.demo.entity.Demo;
import com.laysonx.demo.entity.Example;

/**
 * @description:
 * @author: Laysonx
 * @date: 2019/9/29 10:21
 */
public class DemoVerifyHandler extends AbstractVerifyHandler {

    @Override
    public Class<?> getTargetClass() {
        return Demo.class;
    }

    @Override
    public <T> boolean verify(T t) {

        if(t instanceof Demo){
            if(!((Demo) t).getValue().equals("Test1")){
                return true;
            }
        }
        return false;
    }
}
